<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div class="pageContent">
	<form method="post" action="${rootUrl}/system/resource/${resource.id}" class="pageForm required-validate" onsubmit="return validateCallback(this, editDialogAjaxDone);">
		<input type="hidden" name="_method" value="put">
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>资源名称：</label>
				<input name="resource.name" class="required" type="text" size="30" value="${resource.name}" />
			</p>

			<p>
				<label>匹配模式：</label>
				<input name="resource.pattern"  type="text" size="30" value="${resource.pattern}" />
			</p>
			<p>
				<label>请求方法：</label>
				<select  name="resource.httpmethod">
				<option value="${resource.httpmethod}">${resource.httpmethod}</option>
				<option value="GET">GET</option>
				<option value="POST">POST</option>
				<option value="PUT">PUT</option>
				<option value="DELETE">DELETE</option>
				</select>
			</p>
			
			<dl class="nowrap">
				<dt>备注：</dt>
				<dd><textarea name="resource.remark" cols="80" rows="5">${resource.remark}</textarea></dd>
			</dl>
			


		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>